package com.xiaoyu.tool.entity.User;

import com.xiaoyu.tool.entity.common.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@Entity
@Table(name = "user_integral")
@EqualsAndHashCode(callSuper=false)
public class UserIntegral extends AbstractEntity {

    @Column
    private Long userId;

    @Column
    private BigDecimal integral = new BigDecimal("0");

}
